package org.jeecg.modules.manage.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.manage.entity.CaishuiMiddleUser;
import org.jeecg.modules.manage.mapper.MCaishuiMiddleUserMapper;
import org.jeecg.modules.manage.service.IMCaishuiMiddleUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: 中台用户表
 * @Author: yfkj
 * @Date:   2023-02-07
 * @Version: V1.0
 */
@Service
public class MCaishuiMiddleUserServiceImpl extends ServiceImpl<MCaishuiMiddleUserMapper, CaishuiMiddleUser> implements IMCaishuiMiddleUserService {

	@Resource
	private MCaishuiMiddleUserMapper mCaishuiMiddleUserMapper;


	/**
	 * 外键关联分页查询
	 * @param page
	 * @param queryWrapper
	 * @return
	 */
	@Override
	public IPage<CaishuiMiddleUser> pageMultiTable(IPage<CaishuiMiddleUser> page, QueryWrapper<CaishuiMiddleUser> queryWrapper) {
		return this.baseMapper.pageMultiTable(page, queryWrapper);
	}

	@Override
	public List<CaishuiMiddleUser> selectByMainId(String mainId) {
		return mCaishuiMiddleUserMapper.selectByMainId(mainId);
	}

}
